* {
  margin: 0;
  padding: 0;
}

ul, li { list-style: none; }

html, body {
  background-color: #f1f1f1;
}

.page-wrapper {
  max-width: 640px;
  margin: 0 auto;
  box-shadow: 0 0 14px 2px rgb(0 0 0 / 10%);
}

.header {
  height: 42px;
  line-height: 42px;
  display: flex;
  flex-wrap: nowrap;
  background-color: #999999;
  padding: 10px 10px;
}

.header .header-left,
.header .header-right {
  display: flex;
  flex-wrap: nowrap;
  flex: 1;
}

.header .header-right {
  justify-content: flex-end;
}

.header .header-left .window-action {
  width: 22px;
  height: 22px;
  line-height: 22px;
  border-radius: 50%;
  margin-right: 3px;
  text-align: center;
  cursor: default;
  margin-right: 15px;
  box-shadow: 1px 1px 2px rgb(0 0 0 / 30%);
  text-shadow: 1px 1px 2px rgb(0 0 0 / 30%);
}

.header .header-right .window-action {
  width: 22px;
  height: 22px;
  margin-left: 16px;
}

.header .close {
  background-color: #FC5652;
}

.header .min {
  background-color: #FDBC40;
}

.header .max {
  background-color: #34C749;
}

.gg-browser {
  box-sizing: border-box;
  position: relative;
  display: block;
  transform: scale(var(--ggs, 1));
  width: 24px;
  height: 18px;
  border: 2px solid;
  border-radius: 3px;
  margin-top: 3px;
}

.gg-browser::after,
.gg-browser::before {
  content: "";
  display: block;
  box-sizing: border-box;
  position: absolute;
  width: 22px;
  height: 2px;
  background: currentColor;
  top: 4px
}

.gg-browser::after {
  border-radius: 3px;
  width: 2px;
  box-shadow:
    3px 0 0,
    6px 0 0;
  top: 1px;
  left: 1px
}

.gg-sun {
  box-sizing: border-box;
  position: relative;
  display: block;
  transform: scale(var(--ggs, 1));
  width: 24px;
  height: 24px;
  background:
    linear-gradient(to bottom,
      currentColor 4px, transparent 0) no-repeat 5px -6px/2px 6px,
    linear-gradient(to bottom,
      currentColor 4px, transparent 0) no-repeat 5px 14px/2px 6px,
    linear-gradient(to bottom,
      currentColor 4px, transparent 0) no-repeat -8px 5px/6px 2px,
    linear-gradient(to bottom,
      currentColor 4px, transparent 0) no-repeat 14px 5px/6px 2px;
  border-radius: 100px;
  box-shadow: inset 0 0 0 2px;
  border: 6px solid transparent
}

.gg-sun::after,
.gg-sun::before {
  content: "";
  display: block;
  box-sizing: border-box;
  position: absolute;
  width: 24px;
  height: 2px;
  border-right: 4px solid;
  border-left: 4px solid;
  left: -6px;
  top: 5px
}

.gg-sun::before {
  transform: rotate(-45deg)
}

.gg-sun::after {
  transform: rotate(45deg)
}

 .gg-moon,
 .gg-moon::after {
   display: block;
   box-sizing: border-box;
   border-radius: 50%
 }

 .gg-moon {
   overflow: hidden;
   position: relative;
   transform: rotate(-135deg) scale(var(--ggs, 1));
   width: 20px;
   height: 20px;
   border: 2px solid;
   border-bottom-color: transparent
 }

 .gg-moon::after {
   content: "";
   position: absolute;
   width: 12px;
   height: 18px;
   border: 2px solid transparent;
   box-shadow: 0 0 0 2px;
   top: 8px;
   left: 2px
 }

.calc-area {
  padding: 10px;
  background-color: #999999;
}
.calc-area .calc-line {
  height: 40px;
  line-height: 40px;
  font-size: 30px;
  text-align: right;
}
.calc-area .current-number {
  height: 64px;
  line-height: 64px;
  font-size: 38px;
  font-weight: 600;
  text-align: right;
}

.keyboard-line {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
}

.keyboard-line .keycode {
  height: 25vw;
  width: 25vw;
  line-height: 25vw;
  font-size: 28px;
  font-weight: 600;
  background-color: #d6d6d6;
  text-align: center;
  border: 1px solid #999;
  box-sizing: border-box;
}
.keyboard-line .keycode:last-child {
  background-color: #F5923E;
  color: #fff;
}

.history-container {
  position: fixed;
  height: 80vh;
  width: 100%;
  left: 0;
  bottom: 0;
  overflow-y: auto;
  padding: 16px;
  box-sizing: border-box;
  background-color: #f3f3f3;
}

.history-container .title {
  font-size: 22px;
  line-height: 44px;
  border-bottom: 1px solid #dedede;
}

.history-container .history-item {
  height: 44px;
  line-height: 44px;
  font-size: 18px;
  border-bottom: 1px solid #dedede;
  text-align: right;
  overflow-x: auto;
}

.history-container.hidden {
  opacity: 0;
  transform: translate3d(0, 200vw, 0);
  animation: fadeDown 0.2s linear;
}

.history-container.show {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  animation: fadeUp 0.2s linear;
}

@keyframes fadeDown {
  0% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
  100% {
    opacity: 0;
    transform: translate3d(0, 200vw, 0);
  }
}

@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translate3d(0, 200vw, 0);
  }

  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}